<?php /*<div class="slier" style="display:none;">
    <div class="container">
        <div class="row">
            <div class="span12 slider no_margin_left pull-right">
                <div class="slider-wrapper theme-default">
                    <div id="myslider" class="nivoSlider">
                        <?php
                        foreach ($sdata as $photo => $name) {
                            ?>
                            <img src="<?php echo base_url() . "uploads/" . $photo ?>" data-thumb="<?php echo base_url() . "uploads/" . $photo ?>" alt="" title="<?php echo $name ?>" />
                        <?php } ?>
                    </div>
                </div>
                
                <link rel="stylesheet" href="<?php echo base_url(); ?>assets/theme/js/nivo-slider/themes/default/default.css" type="text/css" media="screen" />
                <link rel="stylesheet" href="<?php echo base_url(); ?>assets/theme/js/nivo-slider/nivo-slider.css"/>
                <script type="text/javascript" src="<?php echo base_url() ?>assets/theme/js/nivo-slider/jquery.nivo.slider.pack.js"></script>
                <script type="text/javascript">
                    $(window).load(function() {
                        $('#myslider').nivoSlider();
                    });
                </script>
            </div>
        </div>
    </div>
</div>
*/ ?>
<div class="wrap-map" id="wrap-map">
    <div id="myCarousel" class="carousel slide">
    <ol class="carousel-indicators">
    <?php $num=0; ?>
    <?php foreach ($sdata as $photo => $name) { 
         $first_active = '';
            if($num==0)$first_active = 'active';
    ?>

    <li data-target="#myCarousel" data-slide-to="<?php echo $num ?>" class="<?php echo $first_active; ?>"></li>
    <?php $num++ ?>
    <?php } ?>
    </ol>
    <!-- Carousel items -->
    <div class="carousel-inner">
    <?php $n=0; ?>
    <?php foreach ($sdata as $photo => $name) { 
         $first_active = '';
            if($n==0)$first_active = 'active';
    ?>
        <div class="item <?php echo $first_active; ?>">
        <img src="<?php echo base_url() . "uploads/" . $photo ?>" data-thumb="<?php echo base_url() . "uploads/" . $photo ?>" alt="" title="<?php echo $name ?>" />
        </div>
      <?php $n++ ?>   
     <?php } ?>
    </div>
    <!-- Carousel nav -->
    <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
    <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
    </div>
</div>


<div class="wrap-search">
    <div class="container">
        <ul class="menu-onmap">
            <li class="active"><a href="#">Advance Search</a></li>
            
        </ul>
        <div class="search-form">
            <form class="form-inline" action="<?php echo site_url() . "search" ?>" method="GET" >
                
                <div class="span12"><input type="text" class="span12" placeholder="Search text:" name="searchstr"  /></div>
                <div class="span12">
                <?php array_unshift($sType, " ");
                echo '<div class="span2" style="margin-left:0;"  ><strong>'.lang('content_estatetype') .'</strong><br>'. form_dropdown('type', $sType, '', 'class="span2 selectpicker-small"','id="vType"', 'placeholder="'.lang('content_estatetype').'"' ) . '</div>' ?>
                <?php echo '<div class="span2" ><strong>'.lang('content_room') .'</strong><br>'.form_dropdown('room', $sRoom, '', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_room').'"') . '</div>' ?>
                <?php echo '<div class="span2"><strong>'.lang('content_bathroom') .'</strong><br>'.form_dropdown('bathroom', $sBathroom, '', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_bathroom').'"') . '</div>' ?>
                <?php echo '<div class="span2"><strong>'.lang('content_heating') .'</strong><br>'.form_dropdown('heating', $sHeating, '', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_heating').'"') . '</div>' ?>
                <?php echo '<div class="span2"><strong>'.lang('content_squaremeter') .'</strong><br>'.form_dropdown('squaremeter', $sSm, '', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_squaremeter').'"') . '</div>'?>
                <?php echo '<div class="span2" ><strong>'.lang('content_buildstatus') .'</strong><br>'.form_dropdown('buildstatus', $sBs, '', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_buildstatus').'"') . '</div>'?>
                <?php echo '<div class="span2" style="margin-left:0;" ><strong>'.lang('content_floor') .'</strong><br>'.form_dropdown('floor', $sFloor, '', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_floor').'"') . '</div>' ?>
                <?php 
                array_unshift($sCat, " ");
                echo '<div class="span2" ><strong>'.lang('content_category') .'</strong><br>'. form_dropdown('category', $sCat,'', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_category').'"') . '</div>' ?>
                <?php echo '<div class="span2" ><strong>'.lang('content_pricemin') .'</strong><br>'. form_dropdown('pricemin', $sPricemin, '', 'class="span2 selectpicker-small"',  'placeholder="'.lang('content_pricemin').'"') . '</div>' ?>
                <?php echo '<div class="span2" ><strong>'.lang('content_pricemax') .'</strong><br>'. form_dropdown('pricemax', $sPricemax, '', 'class="span3 selectpicker-small"',  'placeholder="'.lang('content_pricemax').'"') . '</div>' ?>
                </div>
                <br style="clear:both;" />
                <button id="search-start" type="submit" class="btn btn-info btn-large span">&nbsp;&nbsp;Search&nbsp;&nbsp;</button>
            </form>
        </div>
    </div>
</div>
